#include <stdio.h>

//https://www.nowcoder.com/practice/2ccc5fca423e47f0b622fe6f151cfab4?tpId=290&tqId=309119&ru=/exam/oj/ta&qru=/ta/beginner-programmers/question-ranking&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D290

int main() {
    int num = 0;
    while (~scanf("%d", &num)) {
        printf("*\n");
        for (int i = 0; i < num - 1; i++) {
            printf("* ");
            for (int j = 0; j < i; j++) {
                if (i < num - 2) {
                    printf("  ");
                } else {
                    printf("* ");
                }
            }
            printf("* \n");
        }
    }
    return 0;
}
